From f7fc8ebb1f755980d16c913d7e7498607db71e66 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Sat, 11 Aug 2007 02:04:47 +0000 Subject: [PATCH] (x_draw_image_glyph_string): Adjust stipple origin when filling pixmap with stippled background. --- src/xterm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index d79815148be..2d9de86a445 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -2525,9 +2525,11 @@ x_draw_image_glyph_string (s) { /* Fill background with a stipple pattern. */ XSetFillStyle (s->display, s->gc, FillOpaqueStippled); + XSetTSOrigin (s->display, s->gc, - s->x, - s->y); XFillRectangle (s->display, pixmap, s->gc, 0, 0, s->background_width, s->height); XSetFillStyle (s->display, s->gc, FillSolid); + XSetTSOrigin (s->display, s->gc, 0, 0); } else { -- 2.30.2